import request from '@/utils/request'

export const getArticles = params => request.get('/admin/interview/query', { params })
// 添加数据
export const addArticles = data => request.post('/admin/interview/create', data)

// 删除数据 body 请求体参数
export const delArticles = id => request.delete('/admin/interview/remove', { data: { id } })
// 编辑数据 query 查询参数
export const getArticleDetail = id => request.get('/admin/interview/show', { params: { id } })

// 修改当个面经
export const updataArticle = data => request.put('/admin/interview/update', data)
